<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['event']) && (($_SESSION['event']&1<<1) == 0))) {
	$this->_redirect(HOST_BACKEND);
}
$intParentId	= $objRequest->getParam('parentid', 0);
$objCommon		= new Ecore_Common();
$objCategory	= new Category();
$objSlideshow	= new Slideshow();
$objEvent		= new Event();
$this->view->arrProvince	= $objCommon->getProvince();
$this->view->arrCategory	= $objCategory->getParent(EVENT_TYPE);
$arrAlbum					= $objSlideshow->getAlbumForCombo(EVENT_TYPE);
$this->view->arrAlbum		= $arrAlbum;
$this->view->arrFeature		= $arrFeature;
if(isset($_SESSION['EVENT_POST']['pprovince'])) {
	$this->view->arrDistrict	= $objCommon->getDistrict($_SESSION['EVENT_POST']['pprovince']);
}
if(isset($_SESSION['EVENT_POST']['ptbfeature'])) {
	$strJson	= str_replace('\\','',$_SESSION['EVENT_POST']['ptbfeature']);	
	$this->view->arrFeatures = json_decode($strJson);
}
